package com.cx.base.day10_wrapperClass;

import java.math.BigInteger;

/**
 * BigInteger和BigDecimal类似，是于用于处理大精度的整数的。取值范围没有上限。
 *
 * @Author: robert.song
 * @Date: Created in 2022/5/13
 */

public class Util_04_BigInteger {

    public static void main(String[] args) {
        BigInteger bi = new BigInteger("12");
        System.out.println(bi.abs());
        System.out.println(bi.pow(3));
        System.out.println(bi.add(bi));
        System.out.println(bi.subtract(bi));
        System.out.println(bi.multiply(bi));
        System.out.println(bi.divide(bi));
        System.out.println(bi.remainder(bi));
        System.out.println(bi.compareTo(bi));
    }

    public Class<?> test() {
        Class<Util_04_BigInteger> klass = Util_04_BigInteger.class;
        return klass;
    }
}
